<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
String path = request.getContextPath(); //解決跳轉后樣式丟失的問題
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 	
%>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" href="<%=path%>/background/style/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/css/sweetalert.css"/>
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/style.css" />
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/jquery.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/bootstrap.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/ckform.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/common.js"></script>
	<script type="text/javascript" src="<%=path%>/background/style/js/sweetalert.min.js"></script>
	<script type="text/javascript" src="<%=path%>/background/style/js/sweetalert-dev.js"></script>
	<script type="text/javascript" src="<%=path%>/background/style/js/user.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form class="definewidth m20">
	<input type="hidden"  id="id" value="${info.id}"/>
	<input type="hidden"  id="pc" value="${pc}"/>
	<table class="table table-bordered table-hover definewidth m10">
		    <tr>
		        <td width="10%" class="tableleft">用户名</td>
		        <td><input type="text" id="name" value="${info.name}"/></td>
		    </tr>  
		    <tr>
		        <td class="tableleft">性别</td>
		        <td>
		            <input type="radio" name="sex" id="sex" value="${info.sex}" checked/> 男
		            <input type="radio" name="sex" id="sex" value="${info.sex}"/> 女
		        </td>
		    </tr>
			<tr>
		        <td class="tableleft">生日</td>
		        <td><input type="text" id="birthday" value="${info.birthday}"/></td>
		    </tr> 
			 <tr>
		        <td class="tableleft">电话号码</td>
		        <td><input type="text" id="number" value="${info.number}"/></td>
		    </tr> 
			 <tr>
		        <td class="tableleft">星级</td>
		        <td><input type="text" id="level" value="${info.level}"/></td>
		    </tr>
			
		     <tr>
		        <td class="tableleft">是否为商家</td>
		        <td>
		            <input type="radio" name="store" id="hasStore" value="${info.hasStore}" checked/> 是
		            <input type="radio" name="store" id="hasStore" value="${info.hasStore}"/> 否
		        </td>
		    </tr>
		    <tr>
		        <td class="tableleft"></td>
		        <td>
		            <input type="button" class="btn btn-primary" onclick="updateUser()" value="修改信息">&nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
		        </td>
		    </tr>
		</table>
	</form>
	<script>
	    $(function () {       
			$('#backid').click(function(){
					window.location.href="../background/usermanager/userManager.jsp";
			 });
	
	    });
	</script>
</body>
</html>
